<?php

/**
 * Controller class for ajax requests
 *
 * @author Drakos
 */
class App_Contrloller_Ajax 
    extends Zend_Controller_Action
{
    protected function chechHostname(){
        $hostname = $this->getRequest()->getHttpHost();
        $baseHost = Zend_Controller_Front::getInstance()->getBaseUrl();
        $env = APPLICATION_ENV;
        switch($env){
            case 'production':
                if($hostname == $baseHost){
                    return true;
                }
                else{
                    return false;
                }
                break;
            case 'staging':
                
                break;
            case 'testing':
                
                break;
            case 'development':
                return true;
                break;
        }
    }
}

?>
